import Vue from 'vue'
import Router from 'vue-router'
import BecomeVip from '@/components/wallet/BecomeVip.vue'
import topUp from '@/components/wallet/topUp.vue'
import refund from '@/components/wallet/refund.vue'
import coupon from '@/components/wallet/coupon.vue'
import antCredit from '@/components/wallet/antCredit.vue'
import user_record from '@/components/user/user_record.vue'
import repair from '@/components/common/repair.vue'


import AXIO from 'axios'
import ElemeUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(Router)
Vue.use(AXIO)
Vue.use(ElemeUI)

export default new Router({
  base: '/wdb007',
  routes: [{
      path: '/vip/userid/:userId/token/:userToken',
      name: 'VIP',
      component: BecomeVip
    },
    {
      path: '/topup/userid/:userId/token/:userToken',
      name: 'topUp',
      component: topUp
    },
    {
      path: "/repair",
      name: 'repair',
      component: repair
    },
    {
      path: "/refund",
      name: 'refund',
      component: refund
    },
    {
      path: "/coupon",
      name: 'coupon',
      component: coupon
    },
    {
      path: "/antCredit",
      name: 'antCredit',
      component: antCredit
    },
    // {
    //   path: "/user_record",
    //   name: 'user_record',
    //   component: user_record
    // }

  ]
})
